package impl.gui;

import impl.core.UDecideManager;

import java.awt.BorderLayout;

public class UDecideView extends org.protege.editor.owl.ui.view.AbstractOWLViewComponent {

	private UDecideManager	man;

	@Override
	protected void disposeOWLView() {
		this.man.close();
	}

	@Override
	protected void initialiseOWLView() throws Exception {

		this.man = new UDecideManager(getOWLModelManager().getActiveOntology(), getOWLModelManager().getOWLOntologyManager(), getOWLModelManager()
				.getOWLDataFactory(),
				getOWLEditorKit(), getOWLWorkspace());

		UDecideGUI gui = UDecideManager.getInstance().getGUI();

		this.setLayout(new BorderLayout());

		this.add(gui);
	}

}
